package GUI;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class GUI_Anmeldung extends javax.swing.JFrame {

	{
		//Set Look & Feel
		try {
			javax.swing.UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
		} catch(Exception e) {
			e.printStackTrace();
		}
	}

	private JButton jButtonAdnim;
	private JButton jButtonLehrer;
	private JLabel jLabelGesamtaschule;
	private JMenuItem jMenuItemBeenden;
	private JMenu Datei;
	private JMenuBar jMenuBar1;

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				GUI_Anmeldung inst = new GUI_Anmeldung();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public GUI_Anmeldung() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			getContentPane().setLayout(null);
			{
				jMenuBar1 = new JMenuBar();
				setJMenuBar(jMenuBar1);
				{
					Datei = new JMenu();
					jMenuBar1.add(Datei);
					Datei.setText("Datei");
					{
						jMenuItemBeenden = new JMenuItem();
						Datei.add(jMenuItemBeenden);
						jMenuItemBeenden.setText("Beenden");
						jMenuItemBeenden.addActionListener(new ActionListener() {
							public void actionPerformed(ActionEvent evt) {
								jMenuItemBeendenActionPerformed(evt);
							}
						});
					}
				}
			}
			{
				jButtonAdnim = new JButton();
				getContentPane().add(jButtonAdnim);
				jButtonAdnim.setText("Adnim");
				jButtonAdnim.setBounds(130, 3, 126, 68);
				jButtonAdnim.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent evt) {
						jButtonAdnimActionPerformed(evt);
					}
				});
			}
			{
				jButtonLehrer = new JButton();
				getContentPane().add(jButtonLehrer);
				jButtonLehrer.setText("Lehrer");
				jButtonLehrer.setBounds(125, 165, 137, 64);
				jButtonLehrer.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent evt) {
						jButtonLehrerActionPerformed(evt);
					}
				});
			}
			{
				jLabelGesamtaschule = new JLabel();
				getContentPane().add(jLabelGesamtaschule);
				jLabelGesamtaschule.setText("Gesamtschule-Bremen-Mitte");
				jLabelGesamtaschule.setBounds(19, 70, 351, 91);
				jLabelGesamtaschule.setFont(new java.awt.Font("Comic Sans MS",3,24));
				jLabelGesamtaschule.setEnabled(false);
			}
			pack();
			setSize(400, 300);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	private void jButtonAdnimActionPerformed(ActionEvent evt) {
		System.out.println("jButtonAdnim.actionPerformed, event="+evt);
		//TODO add your code for jButtonAdnim.actionPerformed
	}
	
	private void jButtonLehrerActionPerformed(ActionEvent evt) {
		System.out.println("jButtonLehrer.actionPerformed, event="+evt);
		//TODO add your code for jButtonLehrer.actionPerformed
	}
	
	private void jMenuItemBeendenActionPerformed(ActionEvent evt) {
		
			System.exit(0);
		
	}

}
